function createPlanValidate(){
	var planName = $('#demo-name').val().trim();
	if(planName=="undefind" || planName == null || planName == ''){
		showAlertBox("nameValidateAlert", errorCode.nameNotNull);
		return false;
	}
	
	var planeName = $('#limit_mana_up').val().trim();
	var reg = /^[0-9]+([.]{1}[0-9]{1,2})?$/;
	if(planeName=="undefind" || planeName == null || planeName == '' || !reg.test(planeName)){
		showAlertBox("pointValidateAlert", errorCode.pointError);
		return false;
	}
	

}

function editPlanValidate(){
	var planName = $('#incentive_plan_name').val().trim();
	if(planName=="undefind" || planName == null || planName == ''){
		showAlertBox("nameValidateAlert", errorCode.nameNotNull);
		return false;
	}
	
	var planeName = $('#limit_mana_up').val().trim();
	var reg = /^[0-9]+([.]{1}[0-9]{1,2})?$/;
	if(planeName=="undefind" || planeName == null || planeName == '' || !reg.test(planeName)){
		showAlertBox("pointValidateAlert", errorCode.pointError);
		return false;
	}
	

}

function createPointValidate(){
	var pointName = $('#point_info_name').val().trim();
	if(pointName=="undefind" || pointName == null || pointName == ''){
		showAlertBox("nameValidateAlert", errorCode.nameNotNull);
		return false;
	}

}

function noticeValidate(){
	var pointName = $('#tongzhi_body').val().trim();
	if(pointName=="undefind" || pointName == null || pointName == ''){
		showAlertBox("nameValidateAlert", errorCode.nameNotNull);
		return false;
	}
	
}

